#


import os
from dotenv import load_dotenv

basedir = os.path.dirname(os.path.abspath(__file__))

env_path = os.path.join(basedir, '.env')
if os.path.exists(env_path):
    load_dotenv(env_path)
    from app import create_app
    app = create_app('production')
else:
    print('Error: not found the .env file')
    exit()
